import { axios } from '@/utils/request'

/**
 * 违章原因
 * @param {*} parameter
 * @returns
 */
export function getVioCauseAnalysis (parameter) {
  return axios({
    url: '/QHSEViolationClauseAnalysisController/ViolationClauseAnalysis',
    method: 'post',
    data: parameter
  })
}

/**
 * 违章性质
 * @param {*} parameter
 * @returns
 */
export function getVioTypeAnalysis (parameter) {
    return axios({
      url: '/QHSEViolationClauseAnalysisController/ViolationTypeAnalysis',
      method: 'post',
      data: parameter
    })
}

/**
 * 违章年龄
 * @param {*} parameter
 * @returns
 */
export function getVioAgeAnalysis (parameter) {
    return axios({
      url: '/QHSEViolationClauseAnalysisController/AgeAnalysis',
      method: 'post',
      data: parameter
    })
}

/**
 * 违章工龄
 * @param {*} parameter
 * @returns
 */
export function getVioWorkYearsAnalysis (parameter) {
    return axios({
      url: '/QHSEViolationClauseAnalysisController/WorkYearsAnalysis',
      method: 'post',
      data: parameter
    })
}

/**
 * 用工性质
 * @param {*} parameter
 * @returns
 */
export function getVioEmployeeTypeAnalysis (parameter) {
    return axios({
      url: '/QHSEViolationClauseAnalysisController/EmployeeTypeAnalysis',
      method: 'post',
      data: parameter
    })
}

/**
 * 专业违章性质
 * @param {*} parameter
 * @returns
 */
export function getVioWorkSpecialityAnalysis (parameter) {
    return axios({
      url: '/QHSEViolationClauseAnalysisController/WorkSpecialityAnalysis',
      method: 'post',
      data: parameter
    })
}
